package com.douxg.learning.springboot.resttemplate;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Description
 * @Auther douxg
 * @Date 2022/4/19 11:31
 */
@RequestMapping("http")
@RestController
public class HttpController {
    @RequestMapping("form")
    public String form(HttpServletRequest request, @RequestParam Map<String,Object> map) {
        return request.getQueryString();
    }
}
